home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / standard / gethitcode.z / gethitcode
Encoding:
Text File  |  2002-10-03  |  2.2 KB  |  75 lines

  1.  
  2.  
  3.  
  4. ggggeeeetttthhhhiiiittttccccooooddddeeee((((3333GGGG))))                                                  ggggeeeetttthhhhiiiittttccccooooddddeeee((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ggggeeeetttthhhhiiiittttccccooooddddeeee - returns the current hitcode
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      lllloooonnnngggg ggggeeeetttthhhhiiiittttccccooooddddeeee(((())))
  13.  
  14. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  15.      _n_o_n_e
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      ggggeeeetttthhhhiiiittttccccooooddddeeee returns the global variable _h_i_t_c_o_d_e, which keeps a cumulative
  19.      record of clipping plane hits. It does not change the hitcode value.
  20.  
  21.      The hitcode is a 6-bit number, with one bit for each clipping plane:
  22.  
  23.                   5        4        3        2        1        0
  24.                _____________________________________________________
  25.                  far      near     top     bottom   right     left
  26.                _____________________________________________________
  27.                |||
  28.                        |||
  29.                                 |||
  30.                                          |||
  31.                                                   |||
  32.                                                            |||
  33.                                                                     |||
  34.  
  35.  
  36. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  37.      clearhitcode, gselect, pick
  38.  
  39. NNNNOOOOTTTTEEEESSSS
  40.      This routine is available only in immediate mode.
  41.  
  42.      The symbolic values for the hitcode bits shown above are defined in
  43.      <_g_l/_g_e_t._h>.
  44.  
  45.      This routine only functions on IRIS-4D B and G models, and therefore we
  46.      advise against its use in new development.
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.                                                                         PPPPaaaaggggeeee 1111
  72.  
  73.  
  74.  
  75.